<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ExpressCompany extends Model
{
    //设置表的类型和表名
    protected $table = 'express_companys';
    protected $primaryKey = 'id';
    public $timestamps = true;
    protected $guarded = [];

//    public function newsWithCategory()
//    {
//        return $this->belongsTo('App\Models\News\NewsCategory', 'category', 'id');
//    }
//
//    public function hotNewsWithPic()
//    {
//        return $this->hasOne('App\Models\News\NewsImgExist', 'news_id', 'id');
//    }

}
